home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / ActiveX Controlls / NCTAudioEditor2 ActiveX DLL / NCTAudioEditor2.exe / {app} / Samples / TestVBAudioEditor2 / frmVOX.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2003-04-02  |  5.4 KB  |  163 lines

  1. VERSION 5.00
  2. Begin VB.Form frmVOX 
  3.    Caption         =   "Set VOX Format"
  4.    ClientHeight    =   1455
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   4665
  8.    LinkTopic       =   "Form1"
  9.    ScaleHeight     =   1455
  10.    ScaleWidth      =   4665
  11.    StartUpPosition =   1  'CenterOwner
  12.    Begin VB.CommandButton cmdCancel 
  13.       Caption         =   "Cancel"
  14.       Height          =   375
  15.       Left            =   2745
  16.       TabIndex        =   10
  17.       Top             =   1035
  18.       Width           =   960
  19.    End
  20.    Begin VB.CommandButton cmdOK 
  21.       Caption         =   "Ok"
  22.       Height          =   375
  23.       Left            =   1710
  24.       TabIndex        =   9
  25.       Top             =   1035
  26.       Width           =   960
  27.    End
  28.    Begin VB.Frame Frame2 
  29.       Caption         =   "Frequency (Hz)"
  30.       Height          =   930
  31.       Left            =   0
  32.       TabIndex        =   0
  33.       Top             =   0
  34.       Width           =   4545
  35.       Begin VB.OptionButton F10 
  36.          Caption         =   "12000"
  37.          Height          =   255
  38.          Left            =   1020
  39.          TabIndex        =   12
  40.          Top             =   600
  41.          Width           =   780
  42.       End
  43.       Begin VB.OptionButton F9 
  44.          Caption         =   "6000"
  45.          Height          =   255
  46.          Left            =   120
  47.          TabIndex        =   11
  48.          Top             =   270
  49.          Width           =   780
  50.       End
  51.       Begin VB.OptionButton F2 
  52.          Caption         =   "16000"
  53.          Height          =   255
  54.          Left            =   1920
  55.          TabIndex        =   8
  56.          Top             =   270
  57.          Width           =   780
  58.       End
  59.       Begin VB.OptionButton F3 
  60.          Caption         =   "24000"
  61.          Height          =   255
  62.          Left            =   2820
  63.          TabIndex        =   7
  64.          Top             =   270
  65.          Width           =   780
  66.       End
  67.       Begin VB.OptionButton F7 
  68.          Caption         =   "44100"
  69.          Height          =   255
  70.          Left            =   2820
  71.          TabIndex        =   6
  72.          Top             =   600
  73.          Value           =   -1  'True
  74.          Width           =   780
  75.       End
  76.       Begin VB.OptionButton F4 
  77.          Caption         =   "32000"
  78.          Height          =   255
  79.          Left            =   3720
  80.          TabIndex        =   5
  81.          Top             =   270
  82.          Width           =   780
  83.       End
  84.       Begin VB.OptionButton F8 
  85.          Caption         =   "48000"
  86.          Height          =   255
  87.          Left            =   3720
  88.          TabIndex        =   4
  89.          Top             =   585
  90.          Width           =   780
  91.       End
  92.       Begin VB.OptionButton F1 
  93.          Caption         =   "8000"
  94.          Height          =   255
  95.          Left            =   120
  96.          TabIndex        =   3
  97.          Top             =   600
  98.          Width           =   780
  99.       End
  100.       Begin VB.OptionButton F5 
  101.          Caption         =   "11025 "
  102.          Height          =   255
  103.          Left            =   1020
  104.          TabIndex        =   2
  105.          Top             =   270
  106.          Width           =   780
  107.       End
  108.       Begin VB.OptionButton F6 
  109.          Caption         =   "22050"
  110.          Height          =   255
  111.          Left            =   1920
  112.          TabIndex        =   1
  113.          Top             =   600
  114.          Width           =   780
  115.       End
  116.    End
  117. Attribute VB_Name = "frmVOX"
  118. Attribute VB_GlobalNameSpace = False
  119. Attribute VB_Creatable = False
  120. Attribute VB_PredeclaredId = True
  121. Attribute VB_Exposed = False
  122. Dim Freq As Long        'Declares the variable to store the Frequency value
  123. Private Sub cmdCancel_Click()    'this sub starts on clicking "Cancel" button and terminates the window
  124.     Unload Me
  125. End Sub
  126. Private Sub cmdOK_Click()   'this sub starts on clicking "OK" button
  127.     frmDialog.AudioEditor1.FileFormat.SetFormatVOX Freq  'sets the Frequency according to the value chosen by a customer
  128.     Unload Me   'terminates the frame and stops running it
  129. End Sub
  130. Private Sub F1_Click() 'this sub starts on clicking "8000" radio button
  131.     Freq = 8000 'sets frequency value to 8000 Hz
  132. End Sub
  133. Private Sub F10_Click()
  134.     Freq = 12000
  135. End Sub
  136. Private Sub F2_Click()  'this sub starts on clicking "16000" radio button
  137.     Freq = 16000 'sets frequency value to 16000 Hz
  138. End Sub
  139. Private Sub F3_Click()  'this sub starts on clicking "24000" radio button
  140.     Freq = 24000    'sets frequency value to 24000  Hz
  141. End Sub
  142. Private Sub F4_Click()  'this sub starts on clicking "32000" radio button
  143.     Freq = 32000    'sets frequency value to 32000 Hz
  144. End Sub
  145. Private Sub F5_Click()  'this sub starts on clicking "11025" radio button
  146.     Freq = 11025   'sets frequency value to 11025 Hz
  147. End Sub
  148. Private Sub F6_Click()  'this sub starts on clicking "22050" radio button
  149.     Freq = 22050    'sets frequency value to 22050 Hz
  150. End Sub
  151. Private Sub F7_Click()  'this sub starts on clicking "44100" radio button
  152.     Freq = 44100    'sets frequency value to 44100 Hz
  153. End Sub
  154. Private Sub F8_Click()  'this sub starts on clicking "48000" radio button
  155.     Freq = 48000    'sets frequency value to 48000 Hz
  156. End Sub
  157. Private Sub F9_Click()
  158.     Freq = 6000
  159. End Sub
  160. Private Sub Form_Load() 'this sub starts on loading the frmVOX frame
  161.     Freq = 44100    'sets frequency value to   Hz
  162. End Sub
  163.